package com.distribute.core.netty.retry;


/**
 * 重试策略
 *
 * @author chennengcheng
 * @date 2021-09-22 15:49
 * @remark
 */
public interface RetryPolicy {

    // 基础重连时间
    int BASE_RECONNECT_TIME = 10000;

    boolean allowRetry(int retryCount);

    long getSleepTimeMs(int retryCount);
}